package com.example.game_logic;

import java.util.Map;

public class Color {
	
	public enum ColorID {
		EMPTY, RED, BLUE, GREEN, YELLOW, ORANGE, KAKI, WHITE, MAROON, CYAN
	}
	
	private ColorID ID_;
	
	public Color(String couleur)
	{
		if(couleur.equals("rouge"))
		{
			ID_ = ColorID.RED;
		}
		else if (couleur.equals("bleu"))
		{
			ID_ = ColorID.BLUE;
		}
		else if (couleur.equals("vert"))
		{
			ID_ = ColorID.GREEN;
		}
		else if (couleur.equals("jaune"))
		{
			ID_ = ColorID.YELLOW;
		}
		else if (couleur.equals("orange"))
		{
			ID_ = ColorID.ORANGE;
		}
		else if (couleur.equals("kaki"))
		{
			ID_ = ColorID.KAKI;
		}
		else if (couleur.equals("blanc"))
		{
			ID_ = ColorID.WHITE;
		}
		else if (couleur.equals("marron"))
		{
			ID_ = ColorID.MAROON;
		}
		else if (couleur.equals("cyan"))
		{
			ID_ = ColorID.CYAN;
		}
		else
		{
			ID_ = ColorID.EMPTY;
		}
	}
	
	public Color(ColorID ID)
	{
		ID = ID_;
	}
	
	public ColorID getID()
	{
		return ID_;
	}
	
}
